#ifndef __SERVER_H__
#define __SERVER_H__

#include "head.h"

#include "sys_str.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <pthread.h>

// 定义结构体以传递给线程
typedef struct {
    int client_socket;
    struct sockaddr_in client_addr;
} thread_data_t;





int sever_main(char *addr, char const *port);

void *Server(void *arg);
void *W_Server(void *arg);
void *R_Server(void *arg);


#endif